@extends('layout.master')

@section('content')
    <div class="row">
        <div class="col-md-8">
            <div class="panel panel-info">
                <div class="panel-heading">
                    <h3 class="panel-title">{{ $listTitle }}</h3>
                </div>
                <div class="panel-body">
                    <div class="list-group">
                        @foreach($lists as $list)
                            <a href="{{ route('content', ['id' => $list->id]) }}" class="list-group-item">
                                <h4 class="list-group-item-heading">
                                    <span class="text-primary">{{ $list->title }}</span>
                                </h4>
                                <p class="list-group-item-text">
                                    {{ $list->summary }}
                                </p>
                            </a>
                        @endforeach
                    </div>
                    <nav aria-label="Page navigation" class="pull-right">
                        {{ $lists->links() }}
                    </nav>
                </div>
            </div>
        </div>

        @include('layout.right')

    </div>
@endsection